package com.t11.consumer.mapper;

import com.t11.common.pojo.LzwOrder;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface OrderMapper {


    @Insert("insert into lzw_order (user_phone, goods_id) values (#{userPhone}, #{goodsId})")
    void insert(LzwOrder lzwOrder);

    @Select("select user_phone from lzw_order where user_phone = #{userPhone}")
    LzwOrder findByUserPhone(@Param("userPhone") String userPhone);
}
